<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.Map,java.util.List"%>
<%@ page import="com.xyrj.html.HHHtml"%>
<%@page import="system.config.HHConfig"%>
<jsp:include page="./common/header.jsp" flush="true" />
</head>
<body id="page2" onload="new ElementMaxHeight();">
	<jsp:include page="./common/logo-navmenu.jsp" flush="true" />
	<!-- content -->
	<div id="content">
		<div class="container">
			<jsp:include page="./common/banner.jsp" flush="true" />
			<div class="section">
				<!-- box begin -->
				<div class="box">
					<div class="border-top">
						<div class="border-right">
							<div class="border-bot">
								<div class="border-left">
									<div class="left-top-corner">
										<div class="right-top-corner">
											<div class="right-bot-corner">
												<div class="left-bot-corner">
													<div class="inner">
														<%
															if (request.getAttribute("last_record") != null) {
																Map last_record = (Map) request.getAttribute("last_record");
														%>
														<div class="inner">
															上一篇: <a
																href="<%=HHConfig.SITE_URL%>/index.jsp/news/detail?id=<%=last_record.get("newsarticle_id")%>"><%=last_record.get("newsarticle_name")%></a>
														</div>
														<%
															}
														%>
														<div class="inner">
															<%
																Map record = (Map) request.getAttribute("record");
															%>
															<h2><%=record.get("newsarticle_name")%></h2>
                                                            <p class="detail-image-box">
    															<%=HHHtml.img(
    														    HHHtml.getResourceUrl(record.get("image_path")),
                                            					"detail-image", "detail_img_id",
                                            					record.get("newsarticle_name").toString())%>
                                                            </p>
    														<%=record.get("context")%>
															<div class="clear"></div>
														</div>
														<%
															if (request.getAttribute("next_record") != null) {
																Map next_record = (Map) request.getAttribute("next_record");
														%>
														<div class="inner">
															下一篇: <a
																href="<%=HHConfig.SITE_URL%>/index.jsp/news/detail?id=<%=next_record.get("newsarticle_id")%>"><%=next_record.get("newsarticle_name")%></a>
														</div>
														<%
															}
														%>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!-- box end -->
				</div>
			</div>
		</div>
		<!-- extra-content -->
		<div id="extra-content">
			<div class="container">
				<!-- box begin -->
				<div class="box">
					<div class="border-top">
						<div class="border-right">
							<div class="border-bot">
								<div class="border-left">
									<div class="left-top-corner">
										<div class="right-top-corner">
											<div class="right-bot-corner">
												<div class="left-bot-corner">
													<div class="inner">
														<h2>其它案例</h2>
														<div class="carousel">
															<ul>
																<li class="prev"><img alt=""
																	src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/images/prev.gif" /></li>
																<%
																	List<Map> otherNewsList = (List<Map>) request
																			.getAttribute("otherNewsList");
																	for (int i = 0; otherNewsList != null && i < otherNewsList.size(); i++) {
																		Map caseInfo = otherNewsList.get(i);
																%>
																<li><a
																	href="<%=HHConfig.SITE_URL%>/index.jsp/news/detail?id=<%=caseInfo.get("newsarticle_id")%>">
																		<img alt="<%=caseInfo.get("newsarticle_name")%>"
																		src="<%=HHHtml.getResourceUrl(caseInfo.get("image_path"))%>"
																		width="261" height="179" />
																</a></li>
																<%
																	}
																%>
																<li class="next"><img alt=""
																	src="<%=HHConfig.SITE_URL + "/" + HHConfig.THEME_PATH%>/default/images/next.gif" /></li>
															</ul>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- box end -->
			</div>
		</div>
		<!-- footer -->
		<jsp:include page="./common/footer.jsp" flush="true" />
</body>
</html>